package com.ququ.syb.entrance.fegin;

import com.ququ.common.result.Result;
import com.ququ.syb.common.pojo.PayChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "channel-business")
public interface ChannelBusinessFegin {

    @RequestMapping(value = "/mychannels")
    Result<List<PayChannel>> listMyPayChannels(@RequestParam(value = "accountid") String accountid,
                                               @RequestParam(value = "appcode") String appcode);

    @RequestMapping(value = "/query")
    Result<PayChannel> getPayChannel(@RequestParam(value = "paychannelid") String paychannelid,
                                     @RequestParam(value = "accountid") String accountid,
                                     @RequestParam(value = "appcode") String appcode);
}
